package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 兑换码业务对象 t_redemption_code
 *
 * @author Joker
 * @date 2024-07-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RedemptionCodeBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 兑换码
     */
    @NotBlank(message = "兑换码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String codeName;

    /**
     * 赠送会员天数
     */
    @NotBlank(message = "赠送会员天数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String giveTime;

    /**
     * 会员类型（0-普通会、1-网格会员）
     */
    @NotBlank(message = "会员类型（0-普通会、1-网格会员）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberType;

    /**
     * 是否使用（0-是、1-否）
     */
    private String useStatus;

    /**
     * 兑换时间
     */
    private Date redemptionTime;

    /**
     * 备注
     */
    private String remark;


}
